GtkPopover: Don't resize during the transition
authorTimm Bäder <mail@baedert.org>
Tue, 22 Sep 2015 18:27:51 +0000 (20:27 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 29 Sep 2015 13:28:55 +0000 (15:28 +0200)
Call gtk_popover_update_position instead which will pick up the new
transition_diff value and pass it on to
_gtk_window_set_popover_position, which in turn will move the window
correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=755435

gtk/gtkpopover.c

index 9b4d8ecf41ceae9428adebba1d43755454fe8a4b..5d5694c8fcf73cd913dd8dedc4c4ba4a123f99c1 100644 (file)
@@ -517,7 +517,7 @@ show_animate_cb (GtkWidget     *widget,
       gtk_widget_set_opacity (widget, 1.0 - t);
     }
 
-  gtk_widget_queue_resize (GTK_WIDGET (popover));
+  gtk_popover_update_position (popover);
 
   if (t >= 1.0)
     {